package designpattern.builder;

import designpattern.builder.lombok.Guitar;

public class Main {

    public static void main(String[] args) {
//        Director director = new Director();
//        Builder builder = new CreateBuilder();
//
//        director.construct(builder);
//
//        Computer computer = builder.getComputer();
//
//        computer.show();

//        StuBuilder stuBuilder = new StuBuilder().setName("刘牌").setNo("123").setSex(1).setScore(100F);
//        System.out.println(
//                "stu  "+stuBuilder.build()
//        );

//        Student student = new Student.StudentBuilder().setNo("123456").setName("刘牌").setScore(98F).setSex(1).build();
//        System.out.println(student);


//        Guitar guitar = new Guitar.GuitarBuilder()
//                .guitarString("伊利克斯")
//                .stringButton("grover")
//                .pickup("Marshall")
//                .panel("玫瑰木")
//                .size(42)
//                .fingerboard("巴西玫瑰木")
//                .build();
//        System.out.println(guitar);


//        Guitar guitar = Guitar.builder().guitarString("伊利克斯")
//                .stringButton("grover")
//                .pickup("Marshall")
//                .panel("玫瑰木")
//                .size(42)
//                .fingerboard("巴西玫瑰木")
//                .build();
//
//        System.out.println(guitar);


        Guitar guitar = new Guitar("伊利克斯", "grover", "Marshall", "玫瑰木", 42, "巴西玫瑰木");
        System.out.println(guitar);
    }
}
